package com.aiyige.page.my.merchandisemanagement.model;

/**
 * Created by zhuyakun on 2017/11/22.
 */

public class TabItem {
    public static final int TAB_ID_LEARN_VIDEO = 5;
    public static final int TAB_ID_MAJOR_COURSE = 6;
    public static final int TAB_ID_TRAING_CARD = 7;
    public static final int TAB_ID_PERSONAL_TRAINER = 8;
    public static final int TAB_ID_UNIVERSAL_PRODUCT = 9;
    public static final int TAB_ID_TRAING_CLASS = 10;

    int tabId;
    String tabName;

    public TabItem() {
    }

    private TabItem(Builder builder) {
        setTabId(builder.tabId);
        setTabName(builder.tabName);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public int getTabId() {
        return tabId;
    }

    public void setTabId(int tabId) {
        this.tabId = tabId;
    }

    public String getTabName() {
        return tabName;
    }

    public void setTabName(String tabName) {
        this.tabName = tabName;
    }

    public static final class Builder {
        private int tabId;
        private String tabName;

        private Builder() {
        }

        public Builder tabId(int tabId) {
            this.tabId = tabId;
            return this;
        }

        public Builder tabName(String tabName) {
            this.tabName = tabName;
            return this;
        }

        public TabItem build() {
            return new TabItem(this);
        }
    }
}
